const { defineConfig } = require('@vue/cli-service')

const { publicPath } = require('./public/config');

const webpack = require("webpack");

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: publicPath,
  configureWebpack: {
    //支持jquery
    plugins: [
      new webpack.ProvidePlugin({
        $:"jquery",
        jQuery:"jquery",
        "windows.jQuery":"jquery"
      })
    ]
  },
  // 添加 devServer 配置
  devServer: {
    port: 8081, // 指定启动端口
  }

})
